﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainModel
{
    public class EntityBase
    {
        // extended properties indexer
        private Dictionary<string, string> _extendedProperties = new Dictionary<string, string>();

        public string this[string pName]
        {
            get
            {
                string pValue = "";
                return _extendedProperties.TryGetValue(pName, out pValue) ? pValue : null;
            }
            set
            {
                _extendedProperties[pName] = value;
            }
        }
    }
}
